#include "ShaderProgramNameGL3x.h"

using namespace Renderer;
using namespace Renderer::GL3x;


void Renderer::GL3x::ShaderProgramNameGL3x::Destroy()
{
	if (_value)
	{
		glDeleteShader(_value);
		_value = 0;
	}
}

GLuint Renderer::GL3x::ShaderProgramNameGL3x::GetValue()
{
	return _value;
}

Renderer::GL3x::ShaderProgramNameGL3x::~ShaderProgramNameGL3x()
{
	Destroy();
}

Renderer::GL3x::ShaderProgramNameGL3x::ShaderProgramNameGL3x()
{
	_value = glCreateProgram();
}
